CtlHTMLDialogEnable

The CtlHTMLDialogEnable function makes it obvious when a dialog box is inactive.

void CtlHTMLDialogEnable(
  HWND hDialog,                    // handle to dialog box
  BOOL enable                      // set TRUE to enable the dialog box, FALSE to disable
);

Description

Call the CtlHTMLDialogEnable function to make it obvious when a dialog box is inactive. For example with MFC:


void CMyDialog::OnActivate (UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
   CDialog::OnActivate(nState, pWndOther, bMinimized);
   CtlHTMLDialogEnable(m_hWnd, nState != WA_INACTIVE);
}

For example using the Windows API:


BOOL CALLBACK MyDialogBoxProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
   switch (msg)
   {
      case WM_ACTIVATE:
      {
         UINT nState = LOWORD(wParam);
         CtlHTMLDialogEnable(hWnd, nState != WA_INACTIVE);
         return FALSE;
      }
   }
   return FALSE;
}

See Also

CtlHTMLOptions

Copyright ⌐ 1999, Windmill Point Software. All Rights Reserved.
Last Updated May 19, 1999